<template>
  <div class="category">
    <h2>游戏列表</h2>

    <slot :gams="gams"></slot>

  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue';

let gams = reactive([
    { id: '01', grams: '王者荣耀' },
    { id: '02', grams: '英雄联盟' },
    { id: '03', grams: '永结无间' },
    { id: '04', grams: '和平精英' },
])
</script>

<style scoped>
.category {
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 10px;
  width: 200px;
  height: 300px;
  h2 {
    background-color: orange;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
  }
}
</style>
